

<div class="modal-header">
	<a class="close" data-dismiss="modal">&times;</a>
	<h5>Transfer No:<font color="#227bdd"><?php echo $transfer_details->transfer_no;?></font></h5>
	<h5>Source Branch: <font color="#227bdd"><?php echo $transfer_details->source_branch_name;?></font></h5>
	<h5>Destination Branch:<font color="#227bdd"><?php echo $transfer_details->destination_branch_name;?> </font></h5>
	<h5>Date:<font color="#227bdd"><?php echo $transfer_details->date;?> </font></h5>
</div>
<div class="modal-body">

<table class="table table-striped table-bordered" width="100%" id="example">
	<thead>

    <tr>
		<th>Product Name</th>
        <th>Product Code</th>
		<th> Required Quantity</th>
		<th> Available Quantity</th>
		<th>Status</th>
	</tr>
		<?php $count=1;?>
	<?php foreach($detail as $details){?>
	<tr>
	<td><?php echo $details->name;?> </td>
	<td><?php echo $details->code;?> </td>
	<td><?php echo $details->quantity;?>	</td>
	<?php $data1=$this->transfer_model->get_avail_qty($details->id,$transfer_details->destination_branch)->row();?>
	<td ><?php echo $data1->opening_stock;?></td>
	<?php if(($data1->opening_stock)>= ($details->quantity))
	{?>
    <td style="color:#227bdd;"><?php echo "Available";?></td>
	<input type="hidden" value="1" name="hid" id="hid" />
	<?php } 
	else {?>
	  <td style="color:red;"><?php echo " Not Available";?></td>
	  <input type="hidden" value="0"name="hid" id="hid"/>
	<?php }?>
	</tr><input type="hidden" value="<?php echo $count;?>" id="count_id"/>
	<?php $count=$count+1;?>
	<?php } ?>
    </thead>
	
</table>


</div>
<div class="modal-footer">
	<a class="btn btn-primary" data-dismiss="modal">Close</a>

</div>